#!/bin/sh
docker stop nginx-elk &&  \
docker rm nginx-elk && \
docker run -itd \
        --name nginx-elk \
        -p 8890:9200\
        -v /home/jx/elk/nginx.conf:/etc/nginx/nginx.conf \
        -v /home/jx/elk/default.conf:/etc/nginx/conf.d/default.conf \
        -v /home/jx/elk/logs:/var/log/nginx \
        -d nginx:1.22